GXX = g++
TARGET = main
SRC = $(wildcard *.cc)
OBJ = $(patsubst %.cc,%.o,$(SRC));

$(TARGET):$(OBJ)
	$(GXX) -o $@ $^ -std=c++11

%.o:%.cc 
	$(GXX) -c  $< -o $@  -std=c++11
 
.PHONY:clean
clean:
	rm -rf $(TARGET) $(OBJ)
